Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds a History view of your nbpresent content (e.g. slides and themes, not your notebook), constituting an initial stab at #74.
Here's a shot from the tests:
History goes back to your initial load from the server, the following activities are snapshotted/undoable:
There are some situations where a user could create an "unusable" history: the first time a cell's content is used, it is given an UUID. Going back in time will not unset that UUID or otherwise, but this seems like a pretty reasonable thing.
No history is ever culled (until you reload the browser) which might become an issue, as you can create some interesting timelines (which are always sorted by creation time). Often, behavior will be to remove "dead" branches, but in my local testing, I kind of liked being able to store multiple prior heads for looking at different approaches. Not to mention memory-leaky... worst-case scenario would be big images used as backgrounds, etc.
If you end up having to reload your page, then, you'll also lose history... but this seems not unreasonable.
I have also not added any keyboard shortcuts or additional buttons for undo/redo, as ctrl+z seems like a bad thing to take over.
@jbednar: is this starting to answer the mail on some of your concerns?